package kubayaxi.video.redis.constant;

/**
 * redis  key和过期 配置
 */
public class RedisConstant {

    public static final String  LOGIN_PREFIX = "login_user_";  //用户token前缀

    public static final String  MES_REGIST_PREFIX = "msg_regist_";  //注册短信验证码前缀
    public static final String  MES_REGIST_INTERVAL = "msg_interval_"; //注册间隔1分钟才能发送

    public static final String  MES_RSTPWD_PREFIX = "msg_rstpwd_";  //重置密码短信验证码前缀

    public static final String  PERMISSION_PREFIX = "user_permission_";

    //短信redis（默认5分钟）
    public static final long REDIS_DEFAULT_CODE_TIMEOUT =  5 * 60L;

    //短信1分钟
    public static final long REDIS_MESSAGE_INTERVAL = 60L;

    //token redis（默认7天）
    public static final long REDIS_DEFAULT_USER_TIMEOUT =  7 * 24 * 60 * 60L;
}
